/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2022-11-16
 * Time: 12:28
 */
public class MaxOverloading {
    public static int max(int a, int b) {
        return a > b ? a : b;
    }
    public static int max(int a, int b, int c) {
        int d = a > b ? a : b;
        return d > c ? d : c;
    }
    public static void main(String[] args) {
        int a = 1;
        int b = 2;
        int c = 3;
        System.out.println(max(a, b));
        System.out.println(max(a, b, c));
    }
}
